package com.foreknow.dao;

import com.foreknow.model.Abc;

import java.sql.SQLException;
import java.util.List;

public interface AbcDao {
    /**
     * 查询单个
     * @param id
     * @param name
     * @return
     */
    public Abc isLogin(int id,String name);

    /**
     * 查询所有
     * @return
     */
    public List<Object> query();

    /**
     * 修改
     * @param abc
     * @return
     */
    public boolean update(Abc abc)throws SQLException;

    /**
     *添加方法
     * @param abc
     * @return
     * @throws SQLException
     */
    public boolean add(Abc abc)throws SQLException;

    /**
     * 根据id删除
     * @param id
     * @return
     * @throws SQLException
     */
    public boolean delete(int id)throws SQLException;
}
